package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;

/**
 * 办公用品对象 erp_office_supplies
 *
 * @author cxl
 * @date 2024-06-09
 */
@TableName ("erp_office_supplies")
@ApiModel (value = "办公用品", description = "办公用品")
@Data
@Accessors(chain = true)
public class OfficeSuppliesEntity{

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 类型（字典category_of_office） */
    @TableField ("type")
    @ApiModelProperty ("字典category_of_office）")
    @Excel (name = "类型", readConverterExp = "字=典category_of_office")
    private String type;

    /** 条码 */
    @ApiModelProperty ("条码")
    @TableField ("barcode")
    @Excel (name = "条码")
    private String barcode;

    /** 名称 */
   @ApiModelProperty ("名称")
   @TableField ("name")
   @Excel (name = "名称")
   private String name;

   /** 品牌 */
   @ApiModelProperty ("品牌")
   @TableField ("brand")
   @Excel (name = "品牌")
   private String brand;

    /** 型号 */
    @ApiModelProperty ("型号")
    @TableField ("model")
    @Excel (name = "型号")
    private String model;

    /** 数量 */
    @ApiModelProperty ("数量")
    @TableField ("num")
    @Excel (name = "数量")
    private String num;

    /** 备注 */
    @ApiModelProperty ("备注")
    @TableField ("remark")
    @Excel (name = "备注")
    private String remark;

    /** 单位（字典unit_of_office） */
    @TableField ("unit")
    @ApiModelProperty ("单位（字典unit_of_office）")
    @Excel (name = "单位", readConverterExp = "字=典unit_of_office")
    private String unit;

    /** 金额 */
    @ApiModelProperty ("金额")
    @TableField ("money")
    @Excel (name = "金额")
    private String money;

    /** 创建人 */
    @ApiModelProperty ("创建人")
    @TableField ("user_id")
    @Excel (name = "创建人")
    private String userId;

    /** 创建时间 */
    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
    private Date changeTime;

    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    private Integer isUsed;


    @ApiModelProperty ("采购数量")
    @TableField (exist = false)
    private Integer purchaseNum = 0;

    @ApiModelProperty ("入库数量")
    @TableField (exist = false)
    private Integer warehousingNum = 0;

    @ApiModelProperty ("出库数量")
    @TableField (exist = false)
    private Integer outboundNum = 0;

    @ApiModelProperty ("退库数量")
    @TableField (exist = false)
    private Integer returningNum = 0;

}
